package com.xuzhiguang.baidu.pan.sdk.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

/**
 * @author xuzhiguang
 * @date 2020/6/26 18:23
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasicFileSearchParams {

    /**
     * 搜索目录，默认根目录
     */
    private String dir;

    /**
     * 	搜索关键字
     */
    private String key;

    /**
     * 是否递归，1 递归、0 不递归，默认0
     */
    private Integer recursion;

    /**
     * 	页数，从1开始，缺省则返回所有条目
     */
    private Integer page;

    /**
     * 	每页条目数，默认为1000，最大值为1000
     */
    private Integer num;

    /**
     * 默认0，为1时返回缩略图信息
     */
    private Integer web;

    @Override
    public String toString() {
        return "BasicFileSearchParams{" +
                "dir='" + dir + '\'' +
                ", key='" + key + '\'' +
                ", recursion=" + recursion +
                ", page=" + page +
                ", num=" + num +
                ", web=" + web +
                '}';
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getRecursion() {
        return recursion;
    }

    public void setRecursion(Integer recursion) {
        this.recursion = recursion;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getWeb() {
        return web;
    }

    public void setWeb(Integer web) {
        this.web = web;
    }
}
